package cn.stu.framework.service.impl;

import cn.stu.framework.entity.Conf;
import cn.stu.framework.mapper.ConfMapper;
import cn.stu.framework.service.ConfService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 会议服务实施
 *
 * @author 郑志豪
 * @date 2023/09/18
 */
@Service
public class ConfServiceImpl extends ServiceImpl<ConfMapper, Conf> implements ConfService {

    /**
     * 会议映射器
     */
    @Autowired
    private ConfMapper confMapper;


    /**
     * 选择会议
     *
     * @return {@link Conf}
     */
    @Override
    public Conf selectConf() {
        QueryWrapper<Conf> wrapper = new QueryWrapper<>();
        wrapper.eq("conf_id", 1L);
        return confMapper.selectOne(wrapper);
    }
}
